package com.syas.web.models.extension;

import com.syas.model.models.Fmger;
import com.syas.web.models.FmgerEditModel;

public class FmgerModelExtension {
	
	public static Fmger toFmger(FmgerEditModel editModel){
        Fmger ret =new Fmger();
		ret.setRealName(editModel.getRealName());
		ret.setEzboUname(editModel.getEzboUname());
		ret.setCertId(editModel.getCertId());
		ret.setLevel(editModel.getLevel());
		ret.setMobileNo(editModel.getMobileNo());
		ret.setOrganization(editModel.getOrganization());
		return ret;
	}

    public static FmgerEditModel toFmgerEditModel(Fmger model){
        FmgerEditModel ret=new FmgerEditModel();
        ret.setRealName(model.getRealName());
        ret.setRealName(model.getRealName());
        ret.setEzboUname(model.getEzboUname());
        ret.setCertId(model.getCertId());
        ret.setLevel(model.getLevel());
        ret.setMobileNo(model.getMobileNo());
        ret.setOrganization(model.getOrganization());
        return ret;
    }

}